package com.xinghai.system.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinghai.system.domain.QdOrder;
import com.xinghai.system.domain.QdUser;
import com.xinghai.system.domain.entity.DataUpdateDTO;

/**
 * 订单模块Service接口
 *
 * @author xinghai
 * @date 2024-12-04
 */
public interface IQdOrderService extends IService<QdOrder>
{

    /**
     * 查询订单模块列表
     *
     * @param qdOrder 订单模块
     * @return 订单模块集合
     */
    List<QdOrder> list(QdOrder qdOrder);

    /**
     * 删除订单模块信息
     * @param id 需要删除的数据ID
     * @param flag 是否是逻辑删除
     * @return 结果
     */
    boolean delete(Long id, boolean flag);

    /**
     * 批量删除订单模块信息
     *
     * @param ids 需要删除的数据ID集合
     * @param flag 是否是逻辑删除
     * @return 结果
     */
    boolean deleteBatch(Long[] ids, boolean flag);

    /**
     * 导入订单模块信息
     *
     * @param qdOrderList 订单模块信息集合
     * @return 结果
     */
    public boolean importData(List<QdOrder> qdOrderList);

    public boolean addOrder(QdUser user, QdOrder qdOrder);

    public boolean assignBuyer(String ids, Long id);

    public boolean closeOrder(String ids);

    public boolean openOrder(String ids);

    public boolean changeSeller(String ids, Long id);

    public boolean genPayOrder(Long storeId);

    public boolean flow(String ids, Long storeId);

    public boolean toNoPay(String ids, Long storeId);

    public boolean listing(String ids, Long storeId);

    public boolean examine(String ids, Long storeId);

    public boolean confirmOrder(Long ascriptionStore);

    public boolean mergeOrder(DataUpdateDTO dto);

    public boolean transferOrder(DataUpdateDTO dto);

    public boolean unpackOrder(DataUpdateDTO dto);

    public boolean saveInfo(QdOrder qdOrder);

    public boolean transferOrderUpdate(DataUpdateDTO dto);

    void autoBuyOrder();

    void autoAmountOrder();

    public boolean updateListingStatus(QdOrder info);
}
